<input id="num1" /> * <input id="num2" onkeyup="cal()" /> <button onclick="cal()">=</button> <input id="num3" />

<script>
    function cal(){
        num3.value = num1.value * num2.value;
    }
</script>